//package com.sunlands.deskmate.sales.sender.http;
//
//import com.sunlands.deskmate.sales.channel.ChannelManager;
//import com.sunlands.deskmate.sales.message.outbound.OutboundMessage;
//import com.sunlands.deskmate.sales.sender.RetrySender;
//import com.sunlands.deskmate.sales.sender.Sender;
//import lombok.extern.slf4j.Slf4j;
//
//import java.util.List;
//
///**
// * @author liude
// * @author anjunling@sunlands.com
// */
//@Slf4j
//public class DefaultHttpMessageSender extends AbstractHttpMessageSender implements Sender<List<OutboundMessage>, Integer> {
//
//    public DefaultHttpMessageSender() {
//    }
//
//    public DefaultHttpMessageSender(ChannelInfo channelInfo, String url, List<OutboundMessage> messages) {
//        this.channelInfo = channelInfo;
//        this.url = url;
//        this.messages = messages;
//    }
//
//    @Override
//    public void send() {
//        super.send();
//        if (!sendResult) {
//            //转发到重发
//            RetrySender<List<OutboundMessage>, Integer> retrySender = new RetryHttpMessageSender(this.channelInfo, this.url, this.messages);
//            retrySender.retry();
//        }
//    }
//
//    @Override
//    public Integer strategy() {
//        return 0;
//    }
//
//
//}
